projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a8d870
)
(x_set_menu_bar_lines): Test also menubar_widget before calling
author
Fred Pierresteguy
<F.Pierresteguy@frcl.bull.fr>
Tue, 1 Feb 1994 17:33:14 +0000
(17:33 +0000)
committer
Fred Pierresteguy
<F.Pierresteguy@frcl.bull.fr>
Tue, 1 Feb 1994 17:33:14 +0000
(17:33 +0000)
XtDestroyWidget.
src/xfns.c
patch
|
blob
|
history
diff --git
a/src/xfns.c
b/src/xfns.c
index 4b5de9329c9672c3de8ee7b4c2c9c808eb7363e5..4ffd39f7df45e67210cbc89c642e09fabbebd69e 100644
(file)
--- a/
src/xfns.c
+++ b/
src/xfns.c
@@
-1076,7
+1076,8
@@
x_set_menu_bar_lines (f, value, oldval)
FRAME_EXTERNAL_MENU_BAR (f) = 1;
else
{
- if (FRAME_EXTERNAL_MENU_BAR (f) == 1)
+ if (FRAME_EXTERNAL_MENU_BAR (f) == 1
+ && f->display.x->menubar_widget)
XtDestroyWidget (f->display.x->menubar_widget);
FRAME_EXTERNAL_MENU_BAR (f) = 0;
f->display.x->menubar_widget = 0;